package com.bdqn.t320.ch04.controller;


import com.bdqn.t320.ch04.service.ISysRoleService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author czkt
 * @since 2022-09-03
 */
//@Controller
@RestController
@RequestMapping("/ch04/sys-role")
public class SysRoleController {

    @Resource
    ISysRoleService iSysRoleService;

    @RequestMapping("/getall")
    public Object getAll() {
        return iSysRoleService.getAll();
    }
}
